//
//  ViewController.m
//  ARC与MRC状态下的单例分析
//
//  Created by zhouguodong on 15/4/4.
//  Copyright (c) 2015年 shuanyuan. All rights reserved.
//

#import "ViewController.h"
#import "SYSoundTool.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
   
    SYSoundTool *tool1 = [[SYSoundTool alloc]init];
    SYSoundTool *tool2 = [SYSoundTool sharedSoundTool];
    SYSoundTool *tool3 = [tool2 copy];
    
    [tool2 release];
    [tool2 retain];
    NSLog(@"%ld",[tool2 retainCount]);
    
    
    SYSoundTool *tool4 = [[SYSoundTool alloc]init];
    SYSoundTool *tool5 = [SYSoundTool sharedSoundTool];
    SYSoundTool *tool6 = [tool2 copy];
    
    NSLog(@"%@ %@ %@ %@ %@ %@",tool1,tool2,tool3,tool4,tool5,tool6);
    
}



@end
